package Work;

public class Work2 {
    class Cylinder {

        private double length;
        private Clrcle base;


        private Cylinder(){
            length = 1;
            base = new Clrcle();

        }
        public void setLength(double length){
            this.length = length;


        }
        public double getLength(){
            return length;
        }

        public double findVolume(){
            return base.findArea() * length;
        }

    }


}
